package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysOrderitemMapper;
import com.ruoyi.system.domain.SysOrderitem;
import com.ruoyi.system.service.ISysOrderitemService;

/**
 * 订单明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-05
 */
@Service
public class SysOrderitemServiceImpl implements ISysOrderitemService 
{
    @Autowired
    private SysOrderitemMapper sysOrderitemMapper;

    /**
     * 查询订单明细
     * 
     * @param id 订单明细主键
     * @return 订单明细
     */
    @Override
    public SysOrderitem selectSysOrderitemById(Long id)
    {
        return sysOrderitemMapper.selectSysOrderitemById(id);
    }

    /**
     * 查询订单明细列表
     * 
     * @param sysOrderitem 订单明细
     * @return 订单明细
     */
    @Override
    public List<SysOrderitem> selectSysOrderitemList(SysOrderitem sysOrderitem)
    {
        return sysOrderitemMapper.selectSysOrderitemList(sysOrderitem);
    }

    /**
     * 新增订单明细
     * 
     * @param sysOrderitem 订单明细
     * @return 结果
     */
    @Override
    public int insertSysOrderitem(SysOrderitem sysOrderitem)
    {
        return sysOrderitemMapper.insertSysOrderitem(sysOrderitem);
    }

    /**
     * 修改订单明细
     * 
     * @param sysOrderitem 订单明细
     * @return 结果
     */
    @Override
    public int updateSysOrderitem(SysOrderitem sysOrderitem)
    {
        return sysOrderitemMapper.updateSysOrderitem(sysOrderitem);
    }

    /**
     * 批量删除订单明细
     * 
     * @param ids 需要删除的订单明细主键
     * @return 结果
     */
    @Override
    public int deleteSysOrderitemByIds(Long[] ids)
    {
        return sysOrderitemMapper.deleteSysOrderitemByIds(ids);
    }

    /**
     * 删除订单明细信息
     * 
     * @param id 订单明细主键
     * @return 结果
     */
    @Override
    public int deleteSysOrderitemById(Long id)
    {
        return sysOrderitemMapper.deleteSysOrderitemById(id);
    }
}
